package com.chenc.unitdemo.jwt.controller;

import com.chenc.unitdemo.jwt.dto.UserDto;
import com.chenc.unitdemo.jwt.dto.UserInDto;
import com.chenc.unitdemo.jwt.service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName
 * @Describtion:
 * @Author:Chenc
 * @Date:2024/1/4 14:00
 * @Version 1.0
 */
@Slf4j
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private IUserService userService;

    @GetMapping("/AllUser")
    public List<UserInDto> queryAllUserInfo(){
        return userService.queryAllUserInfo();
    }



}
